package com.springapp.mvc.util;


import org.springframework.security.authentication.encoding.PasswordEncoder;
import org.springframework.security.authentication.encoding.ShaPasswordEncoder;

/**
 * Created by Dima on 22.12.2014.
 */
public class HashGenerator {

    public static void main(String[] args){
        PasswordEncoder encoder = new ShaPasswordEncoder(256);
        System.out.println(encoder.encodePassword("123", "user"));
        System.out.println(encoder.encodePassword("123", "administrator"));
        System.out.println(encoder.encodePassword("123", "supervisor"));
    }
}
